
public class ProperFormalParams {
	FormalParam fp;
	Proper2 p ;
	
	public ProperFormalParams( FormalParam fp, Proper2 p){
		this.fp = fp;
		this.p = p;
	}
	public String toString(){
		String ret = "";

		String s = "";

		if (fp != null) {
			s +=  fp.toString();
		}

		if (p != null) {
			s +=  p.toString();
		}

		for(String st: s.split("\n")){
			if(st!= "")
				ret += "| " + st + "\n";
		}

		return ret;
	}
	public void check() throws SemanticException {
		if (fp != null) {
			fp.check();
		}
		if (p != null) {
			p.check();
		}
	}
}
